﻿const router = require('koa-router')()
const GoodModel = require('../models/good')

router.prefix('/api')

//根据订单编号查找卡商品信息
router.post('/getGoodList',async (ctx) => {
    ctx.status = 200

    let {goodname} = ctx.request.body

    let res = await GoodModel.findOne({goodname:goodname})

    ctx.body = {
        code:200,
        data:res
    }
})






module.exports = router
